#ifndef SEVERALSTACKS_H
#define SEVERALSTACKS_H
typedef struct SeveralStacks {
	int data[NMAX];
	int next[NMAX]; /* NMAX - amount of elements */
	int top[KMAX];  /* KMAX - amount of stacks   */
	int freeTop;
} SeveralStacks;

typedef unsigned char bool;

void Init(SeveralStacks *);

void Push(SeveralStacks *, int, int);

int Pop(SeveralStacks *, int);

int Top(const SeveralStacks *, int);

bool IsEmpty(const SeveralStacks *, int);
#endif
